package com.zxq.ruoyi.enums;

public enum ECodeEnum {
    Success(200,"success"),
    ProductNoPay(201,"product no pay"),
    ProductExpire(202,"product expire"),
    ProductAlreadyRun(203,"product already running"),
    ProductPortAlreadyUse(204,"product port already use"),
    ProductNoRunTask(205,"product no run task"),
    ProductRunStop(207,"product stop"),
    UserNoPermission(208,"user no permission"),
    IllegalDevice(209,"illegal device"),
    NotFindProduct(210,"not find product"),
    NotFindCmd(211,"not find cmd"),
    DeviceOffline(212,"device offline")
    ;

    Integer code;
    String msg;
    ECodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
